package com.jeespring.pay.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pay")
public class PayController {

    @Value("${server.port}")
    private int port;

    @GetMapping("/get/{id}")
    public String selectById(@PathVariable Long id){
        return "请求成功，请求端口号：" + port + "入参：" + id;
    }

}
